package com.cq.oa.dao.wfc;

import oa.base.hibernate.EntityHibernateDao;

import org.hibernate.SQLQuery;

import com.cq.oa.domain.wfc.ProcessInstanceHis;

/**
* wfc_process_instance 实体类
* 2013-10-19 13:32:20
* create by GenerateJavaBeanUtil 
*/ 
public class ProcessInstanceHisDao extends EntityHibernateDao<ProcessInstanceHis>{
	
	
	public void doBackHist(String businessId){
		SQLQuery query = super.getSession().createSQLQuery("insert into wfc_process_instance_his select * from wfc_process_instance where business_id='"+businessId+"'");
		query.executeUpdate();
	}
	
}

